// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Footer from '@/components/Footer'
import axios from './http'
import {domain} from '@/config'

Vue.config.productionTip = false;
Vue.prototype.axios = axios; //定义接口跨域请求包
// Vue.prototype.domain = "http://xxx.com"; //定义跨域域名,公共变量,调用 `${this.domain}/api/xxx`
Vue.component('my-footer', Footer);

/* eslint-disable no-new */
new Vue({
   el: '#app',
   axios,
   router,
   components: {App},
   template: '<App/>'
});
